package com.hcms.admin.dto;

import cn.hutool.core.bean.BeanUtil;
import com.hcms.mybatis.entity.CmsModule;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("CmsModuleOptionResponse对象")
public class CmsModuleOptionResponse implements Serializable {

    @ApiModelProperty("编号")
    private Long id;

    @ApiModelProperty("模块名称")
    private String moduleName;

    public CmsModuleOptionResponse(CmsModule option) {
        BeanUtil.copyProperties(option, this);
    }

}
